package com.ecarx.module_vehicle.signal.Model;

public class Rate {

    /**
     * 0.0F
     */
    String name;
    /**
     * public static final float SENSOR_RATE_ONCHANGE = 0.0F;
     * public static final float SENSOR_RATE_NORMAL = 1.0F;
     * public static final float SENSOR_RATE_UI = 5.0F;
     * public static final float SENSOR_RATE_FAST = 10.0F;
     * public static final float SENSOR_RATE_FASTEST = 100.0F;
     */
    float rate;

    public Rate(String name, float rate) {
        this.name = name;
        this.rate = rate;
    }

    public String getName() {
        return name;
    }

    public float getRate() {
        return rate;
    }

    @Override
    public String toString() {
        return "Rate{" +
                "name='" + name + '\'' +
                ", rate=" + rate +
                '}';
    }
}